package com.confinderence.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Lecturer implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long id;
	private String username;
	private String password;
	private String email;
	private String name;
	private boolean isActive;
	private Date lastLogin;
	public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	private String biography;
	private List<Lecture> lectures;
	private List<Conference> conferences;

	// private String photo;

	public Lecturer() {

	}

	public Lecturer(String username, String password, String email, String name, String biography,
			List<Lecture> lectures, List<Conference> conferences) {
		super();
		this.username = username;
		this.password = password;
		this.email = email;
		this.name = name;
		this.biography = biography;
		this.lectures = lectures;
		this.conferences = conferences;
		this.isActive = true;
		this.lastLogin = new Date();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBiography() {
		return biography;
	}

	public void setBiography(String biography) {
		this.biography = biography;
	}

	public List<Lecture> getLectures() {
		return lectures;
	}

	public void setLectures(List<Lecture> lectures) {
		this.lectures = lectures;
	}

	public List<Conference> getConferences() {
		return conferences;
	}

	public void setConferences(List<Conference> conferences) {
		this.conferences = conferences;
	}

	public boolean isActive() {
		return isActive;
	}

	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}

	public void addConference(Conference conference) {
		getConferences().add(conference);
	}

}
